import { Controller, Get } from '@nestjs/common';
import { CommonService } from './common.service';

@Controller('common')
export class CommonController {
  constructor(private readonly commonService: CommonService) {}

  /**
   * 获取公钥
   * @returns
   */
  @Get('getPublicKey')
  getPublicKey() {
    return this.commonService.getPublicKey();
  }
}
